package com.wanmait.baohan.service.Impl;

import com.wanmait.baohan.mapper.InvoicePictureMapper;
import com.wanmait.baohan.pojo.InvoicePicture;
import com.wanmait.baohan.service.InvoicePictureService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class InvoicePictureServiceImpl implements InvoicePictureService {
    @Resource
    private InvoicePictureMapper invoicePictureMapper;
    @Override
    public void addInvoicePic(List<InvoicePicture> invoicePictureList) {
        invoicePictureMapper.insertListPic(invoicePictureList);
    }
    @Override
    public List<InvoicePicture> invoiceList(Integer reId) {
        return invoicePictureMapper.selectByReId(reId);
    }
}
